sudo sh /home/deck/Downloads/SteamDeck_302/uninstall.sh
sudo rm -rf /home/deck/Downloads/SteamDeck_302
mkdir /home/deck/Downloads/SteamDeck_302
cd /home/deck/Downloads/SteamDeck_302
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/iframe_api
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/iframe_api.js
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/steamcommunity.crt
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/steamcommunity.key
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/steamcommunityCA.pem
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/steamcommunity_302.7z.001
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/steamcommunity_302.7z.002
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/steamcommunity_302.7z.003
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/steamcommunity_302.caddy.json
wget https://gitee.com/leeshan520/steamdeck---fix/raw/master/steamosshop-fix/SteamDeck_302/install.sh
/usr/bin/7z x /home/deck/Downloads/SteamDeck_302/steamcommunity_302.7z.001
rm -rf /home/deck/Downloads/SteamDeck_302/steamcommunity_302.7z.001
rm -rf /home/deck/Downloads/SteamDeck_302/steamcommunity_302.7z.002
rm -rf /home/deck/Downloads/SteamDeck_302/steamcommunity_302.7z.003
cd /home/deck/Downloads/SteamDeck_302
sudo sh install.sh
zenity --question --width=400 \
  --text="商店已秒开！需要重启才能生效！, \
\n现在是否重启?"
if [ "$?" != 0 ]; then
  #NOTE: This code will never be reached due to "set -e", the system will already exit for us but just incase keep this
  echo "bye then! xxx"
  exit 0;
fi

reboot

echo "Done."
echo "Done."
